﻿
using com.guojin.core.io.message;
using System.Collections.Generic;
using com.guojin.core.io;
using System;

namespace com.guojin.mj.net.message.club
{
    public class SHClubPlayerListRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 55;

        private List<ClubPlayerStateChange> _playerInfoList = new List<ClubPlayerStateChange>();  //玩家状态列表

        public List<ClubPlayerStateChange> PlayerInfoList
        {
            get { return _playerInfoList; }
            set { _playerInfoList = value; }
        }

        public void decode(Input _in)
        {
            int len = _in.readInt();
            if (len > 0)
            {
                for (int i = 0; i < len; i++)
                {
                    ClubPlayerStateChange cpi = new ClubPlayerStateChange();
                    cpi.decode(_in);
                    PlayerInfoList.Add(cpi);
                }
            }
        }

        public void encode(Output _out)
        {

        }

        public int getMessageType()
        {
            return TYPE;
        }

        public int getMessageId()
        {
            return ID;
        }

        public string toString()
        {
            return string.Format("");
        }
    }
}